/*
package com.atguigu.gulimall.product.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

*/
/**
 * @author Superman
 *//*

@Configuration
@EnableSwagger2
public class Knife4j3Configuration {
    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("教务系统-用户服务-接口文档")
                .description("教务系统用户服务1.0的接口文档，仅限内部使用")
                .termsOfServiceUrl("http://www.towere.com")
                .contact(new Contact("towere", "www.towere.com", "towere@qq.com"))
                .version("1.0")
                .build();
    }
    @Bean
    public Docket defaultApi2() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo())
                //分组名称
                //.groupName("1.0版本")
                .select()
                //指定controller（接口）扫描的包路径
                .apis(RequestHandlerSelectors.basePackage("com.atguigu.gulimall.product.controller"))
                .paths(PathSelectors.any())
                .build();
    }
}*/
